//
//  ContainerViewController.m
//  news
//
//  Created by 李松 on 2017/3/21.
//  Copyright © 2017年 benxiaohai. All rights reserved.
//

#import "ContainerViewController.h"

@interface ContainerViewController ()

@property (nonatomic, strong)NSArray *viewControllers; //存放所有controller的数组
@property (nonatomic, assign) NSInteger selectedIndex;

@property (nonatomic, strong) UICollectionView *collectionView;

@property (nonatomic, strong) UICollectionViewFlowLayout *flowLayout;


@end

@implementation ContainerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


+ (instancetype)containerControllerWithSubController:(NSArray<UIViewController *> *)viewControllers partentController:(UIViewController *)vc{
    
    //当前controller初始化
    id container = [[self alloc] init];
    
    
    
    
    return container;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
